﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyServer.Todo.Domain.Aggregates.TodoGroupAggregate
{
    public class TodoGroupSettings:Entity
    {
        private TodoGroupSettings()
        {

        }

        /// <summary>
        /// 是否隐藏
        /// </summary>
        public bool IsHidden { get; set; }

        /// <summary>
        /// 主题
        /// </summary>
        public TodoGroupTheme Theme { get; set; }

        /// <summary>
        /// 创建默认设置
        /// </summary>
        /// <returns></returns>
        public static TodoGroupSettings CreateDefaultSettings()
        {
            var settings = new TodoGroupSettings();
            settings.GenerateId();
            return settings;
        }

        public TodoGroupSettings Copy()
        {
            var todoGroupSettings_copy=CreateDefaultSettings();
            todoGroupSettings_copy.Theme = this.Theme;
            return todoGroupSettings_copy;
        }
    }
}
